﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QueryUser.aspx.cs" Inherits="BySoft.Web.Site.ComPage.QueryUser"
    MasterPageFile="~/MastePage/SubEmptyMaster.Master" %>

<%@ Register Assembly="OneSoft.Web" Namespace="OneSoft.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Assembly="BySoft.Web.Controls" Namespace="BySoft.Web.Controls" TagPrefix="cc1" %>
<asp:Content ID="cphContent" runat="server" ContentPlaceHolderID="EmptyMasteCPH">
    <script language="javascript" type="text/javascript">
        var last = null;
        function judge(obj) {
            if (last == null) {
                last = obj.id;
            }
            else {
                var lo = document.getElementById(last);
                lo.checked = "";
                last = obj.id;
            }
            obj.checked = "checked";
        }    
    </script>
    <%--<h1 class="tit">成员选择</h1>--%>
    <div class="searchTable">
        <table cellpadding="0" cellspacing="0">
            <tr>
                <th class="th">
                    账号：
                </th>
                <td class="td">
                    <asp:TextBox ID="txtUserID" runat="server" class="fullWidth"> </asp:TextBox>
                </td>
                <th class="th">
                    姓名：
                </th>
                <td class="td">
                    <asp:TextBox ID="txtUserName" runat="server" class="fullWidth"> </asp:TextBox>
                </td>
            </tr>
            <tr>
                <%--                                            <th class="th">职位：</th>
                                            <td class="td"><asp:TextBox ID="txtJobTitle" runat="server" class="fullWidth"> </asp:TextBox></td>--%>
                <th class="th">
                    类型：
                </th>
                <td class="td">
                    <asp:DropDownList ID="ddlUserType" runat="server" CssClass="fullHeight">
                    </asp:DropDownList>
                </td>
                <th class="th">
                    状态：
                </th>
                <td class="td">
                    <asp:DropDownList ID="ddlStatus" runat="server" CssClass="fullHeight">
                        <asp:ListItem Value="1">有效</asp:ListItem>
                        <asp:ListItem Value="0">无效</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
    </div>
    <%--列表--%>
    <div class="tableStyle">
        <div style="width: 100%; text-align: right">
            <asp:Button Text="查询" runat="server" ID="btnSearch" OnClick="btnSearch_Click" Width="60px" />
        </div>
        <asp:SGridView runat="server" ID="grdResult" Width="100%" ShowActionToolBar="false"
            AutoGenerateColumns="false" AllowCascade="false" OnRowDataBound="grdResult_RowDataBound"
            OnRowCommand="grdResult_RowCommand" DataKeyNames="STATUS">
            <Columns>
                <asp:TemplateField HeaderText="选择">
                    <ItemTemplate>
                        <asp:RadioButton ID="rbSelect" runat="server" GroupName="rdoxz" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        账号</HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lblUSERID" Text='<%#Eval("USERID") %>' runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        姓名</HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lblUSERNAME" Text='<%#Eval("USERNAME") %>' runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:SGridView>
        <div style="padding-top: 5px" align="right">
            <cc1:PagingControl ID="pcData" runat="server" MaxNavigatePageCount="7" OnPageIndexClick="pcData_PageIndexClick" />
        </div>
    </div>
    <div class="controlBar" align="center">
        <table cellpadding="0" cellspacing="0" style="width: 140px; margin: 0 auto;">
            <tr>
                <td width="30%">
                <label class="btnStyleb png_bg">
                    <asp:Button ID="btnOk" runat="server" Text="确定" OnClick="btnOk_Click" Width="60px" /></label><label class="btnStyleb png_bc">
                    <input type="button" id="btnCancel" value="返回" onclick="CloseTopDialog();" style="width: 60px;" /></label>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
